home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
keys.arc
/
KEYS.ASM
next >
Wrap
Assembly Source File
|
1985-03-30
|
634b
|
32 lines
monitor_segment segment at (0f000h)
key_buff_segment equ 0c8h
key_buff_start equ 0cah
key_buff_end equ 0cch
free_mem equ 2000h
end_mem equ 3fffh
monitor_segment ends
data_segment segment at (40h)
key_head_ptr equ 1ah
key_tail_ptr equ 1ch
data_segment ends
code segment public
assume cs:code, ds:data_segment, es:monitor_segment
org 100h
bgkbf: mov ax,monitor_segment
mov es,ax
mov ax,data_segment
mov ds,ax
mov es:key_buff_segment,0f000h
mov ds:key_head_ptr,free_mem
mov ds:key_tail_ptr,free_mem
mov es:key_buff_start,free_mem
mov es:key_buff_end,end_mem
ret
code ends
end bgkbf